<?php
function tf_get_template_post_headlinecode_example() {
  $string = '<h1 selector="div.post-headline h1">
          <a href="#" selector="div.post-headline h1 a">Post Headline</a>
          <a class="hover" href="#" selector="div.post-headline h1 a.hover">Hovered</a>
        </h1>';
  return $string;
}

function tf_get_template_post_bylinecode_example() {
  $string = 'Post Byline with <a href="#" selector="div.post-byline a">a link</a> and a
        <a class="hover" href="#" selector="div.post-byline a.hover">Hovered Link</a>.';
  return $string;
}

function tf_get_template_post_kickercode_example() {
  $string = 'Section heading with <a href="#" selector="div.post-kicker a">link</a>
        and <a class="hover" href="#" selector="div.post-kicker a.hover">hovered</a>';
  return $string;
}

function tf_get_template_post_the_excerpt_example() {
  $string = '<p selector="div.post-bodycopy p">
          Start of excerpt. Note that in automatic excerpts <a href="#" selector="div.post-bodycopy a">links</a> will be stripped by WP,
          just as all other HTML tags. The <a href="#" selector="div.post-bodycopy a">links</a> and
          <a href="#" class="hover" selector="div.post-bodycopy a.hover">hovered links</a> are still here so you can style them. <em>(And you might have a
          plugin running that prevents the HTML stripping in auto excerpts).</em> Lorem ipsum dolor sit amet, consetetur sadipscing <!-- 55 words -->
          <span class="readmore" selector="span.readmore">[...] &rarr; Continue Reading <a href="#" selector="span.readmore a">link to full post</a></span>
        </p>';
  return $string;
}

function tf_get_template_post_thecontent_example() {
  $string = '<p selector="div.post-bodycopy p">
          Start of first &lt;p&gt;. Etiam cursus sodales <a href="#" selector="div.post-bodycopy a">link</a>. Nullam convallis feugiat orci sit amet luctus.
          Quisque sit <a href="#" class="hover" selector="div.post-bodycopy a.hover">hovered link here</a>, vitae blandit ante.
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
        </p>
        <p selector="div.post-bodycopy p">
          Start of second &lt;p&gt;. Etiam cursus sodales <a href="#" selector="div.post-bodycopy a">link</a>. Nullam convallis feugiat orci sit amet luctus.
          Quisque sit <a href="#" class="hover" selector="div.post-bodycopy a.hover">hovered link here</a>, vitae blandit ante.
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
        </p>
        <p selector="div.post-bodycopy p">
          Start of third &lt;p&gt;. Etiam cursus sodales <a href="#" selector="div.post-bodycopy a">link</a>. Nullam convallis feugiat orci sit amet luctus.
          Quisque sit <a href="#" class="hover" selector="div.post-bodycopy a.hover">hovered link here</a>, vitae blandit ante.
          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
        </p>';
  return $string;
}

function tf_get_template_post_footercode_example() {
  $string = 'Post Footer with a <a href="#" selector="div.post-footer a">link</a> and <a class="hover"
        href="#" selector="div.post-footer a.hover">a hovered Link</a>.';
  return $string;
}

function tf_get_template_include_widget_example($body_class) {
  ob_start();
  ?>
<div class="widget" selector="<?php echo $body_class; ?>div.widget">
  <h3 selector="<?php echo $body_class; ?>div.widget h3">Widget Title</h3>
  <ul selector="<?php echo $body_class; ?>div.widget ul">
    <li selector="<?php echo $body_class; ?>div.widget ul li">
      <a selector="<?php echo $body_class; ?>div.widget ul li a" href="#">LI item</a>
    </li>
    <li selector="<?php echo $body_class; ?>div.widget ul li">
      <a selector="<?php echo $body_class; ?>div.widget ul li a" href="#">LI item</a>
    </li>
    <li class="hover" selector="<?php echo $body_class; ?>div.widget ul li.hover">
      <a class="hover" selector="<?php echo $body_class; ?>div.widget ul li a.hover" href="#">LI HOVER / CURRENT</a>
      <ul selector="<?php echo $body_class; ?>div.widget ul ul">
        <li selector="<?php echo $body_class; ?>div.widget ul li li">
          <a selector="<?php echo $body_class; ?>div.widget ul li li a" href="#">2nd level LI</a>
        </li>
        <li class="hover" selector="<?php echo $body_class; ?>div.widget ul li li.hover">
          <a class="hover" selector="<?php echo $body_class; ?>div.widget ul li li a.hover" href="#">2nd l. LI HOVER /
            CURR.</a>
        </li>
        <li selector="<?php echo $body_class; ?>div.widget ul li li">
          <a selector="<?php echo $body_class; ?>div.widget ul li li a" href="#">2nd level LI</a>
        </li>
      </ul>
    </li>
  </ul>
</div>
<?php
  return ob_get_clean();
}

function tf_get_template_include_widget_w_link_example($body_class) {
  ob_start();
  ?>
<div class="widget" selector="<?php echo $body_class; ?>div.widget">
  <h3 selector="<?php echo $body_class; ?>div.widget h3">Widget Title</h3>
  Widget text with a <a selector="<?php echo $body_class; ?>div.widget a" href="#">Link</a> and a
  <a class="hover" selector="<?php echo $body_class; ?>div.widget a.hover" href="#">Hovered Link</a> here.
</div>
<?php
  return ob_get_clean();
}

function tf_get_template_include_comment_links_example() {
  ob_start();
  ?>
<span class="comment-date-link" selector="span.comment-date-link">
        <a selector="span.comment-date-link a" href="#">Feb 15, 2009 at 8:49 am</a>
      </span> |
<span class="comment-reply-link" selector="span.comment-reply-link">
        <a selector="span.comment-reply-link a" href="#">Reply</a>
      </span> |
<span class="comment-edit-link" selector="span.comment-edit-link">
        <a selector="span.comment-edit-link a" href="#">Edit</a>
      </span> |
<span class="comment-delete-link" selector="span.comment-delete-link">
        <a selector="span.comment-delete-link a" href="#">Delete</a>
      </span> |
<span class="comment-spam-link" selector="span.comment-spam-link">
        <a selector="span.comment-spam-link a" href="#">Spam</a>
      </span>
<?php
  return ob_get_clean();
}

function tf_get_template_include_comment_author_not_linked_example() {
  ob_start();
  ?>
<span class="comment-author-name" selector="span.comment-author-name">
        Comment author, not linked</a>
      </span> |
<?php
  return ob_get_clean();
}

function tf_get_template_include_comment_author_link_hovered_example() {
  ob_start();
  ?>
<span class="comment-author-name" selector="span.comment-author-name">
        <a selector="span.comment-author-name a" href="#">Comment
          author</a> <a class="hover" selector="span.comment-author-name a.hover" href="#">Hovered</a>
      </span> |
<?php
  return ob_get_clean();
}

function tf_get_template_include_comment_post_author_link_hovered_example() {
  ob_start();
  ?>
<span class="comment-author-name" selector="span.comment-author-name">
        <a selector="span.comment-author-name a" href="#">The post
          author</a> <a selector="span.comment-author-name a" href="#">Hovered</a>
      </span> |
<?php
  return ob_get_clean();
}

function tf_get_template_include_comment_avatar_example() {
  return '<img selector="img.avatar" src="' . THFRURL . 'images/avatar.gif" class="avatar photo" height="55" width="55" />';
}

function tf_get_template_include_comment_direct_replay_from_post_author_example() {
  return '<p selector="ul.commentlist p">Direct Reply, from Post Author. Both the LI and the DIV inside the LI hav the class .bypostauthor.</p>';
}

function tf_get_template_include_comment_Vivamus_text_example() {
  return 'Vivamus arcu augue, eleifend sed varius dignissim, facilisis in augue. Duis purus dui, tincidunt id ullamcorper vitae, tristique et risus. Mauris feugiat pulvinar gravida. Nunc gravida sagittis mi, luctus condimentum justo euismod id.';
}

?>
